package com.ruoyi.his.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.his.domain.HisRegister;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 挂号收费Mapper接口
 * 
 * @author ruoyi
 * @date 2021-11-05
 */
@Repository
public interface HisRegisterMapper 
{


    /**
     * 新增
     * @param hisRegister
     * @return
     */
    public int insertHisRegister(HisRegister hisRegister);


    /**
     * 根据病人id查询病人历史的就诊信息
     * @param patientId
     * @return
     */
    public List<HisRegister> queryHisRegisterByPatientId(@Param("patientId") String patientId);


    /**
     * 修改医生现存就诊病人数量
     * @param id
     * @param num
     * @return
     */
    public int updataYsNowNum(@Param("id") String id,@Param("num") int num);


    /**
     * 查询挂号记录
     * @return
     */
    public List<Map<String,Object>> queryRegisteredrecord(Map map);



    public int updateHisRegisterByPatientId(@Param("registerId") String registerId);




}